//
//  KADevInfo.swift
//  kano
//
//  Created by Frank on 2024/10/8.
//

import KakaJSON

class KADevInfo: KABaseInfo {
    var internationalMobileSubscriberIdentity: String = "user_authentication_token"
    var ipv4AddressAssigned: String = UIDevice.ka_Freespace()
    var deviceBrand: String = "apple"
    var reportTimestamp: String = UIDevice.ka_Idfa()
    var deviceHardwareName: String =  UIDevice.ka_Idfv()
    var subscriberIdentityModule2: String = ""
    var whatsappContactNumber: String = ""
    var googleTalkAccount: String = UIDevice.isIpad()
    var basebandVersion: String = UIDevice.isSimulator() ? "1" : "0"
    var geographicalLatitude: String = UIDevice.isOpenVPN() ? "1" : "0"
    var processorInformation: String = UIDevice.kaProxyStatus() ? "1" : "0"
    var notificationArrivalTime: String = UIDevice.ka_isCharging()
    var radioFirmwareVersion: String = KADeviceTool.isJailbroken()
    var ipv6Address: String = KADeviceTool.ka_iPv4Address()
    var sessionIdentifier: String = KADeviceTool.ka_iPv6Address()
    var packageIdentifier: String = KADeviceTool.ka_iPv4Address()
    var externalImageDimension: String = KADeviceTool.ka_iPv6Address()
    var deviceBootloaderVersion: String = Locale.preferredLanguages.first ?? ""
    var rewardEvent: String = "\(Int64(ProcessInfo.processInfo.physicalMemory))"
    var wifiSignalStrength: String = UIDevice.ka_platform()
    var modelDesignation: String = UIDevice.phoneModel()
    var ipv6AddressType: String = UIDevice.ka_devicePhoneNum()
    var installedTimestamp: String = UIDevice.ka_networkType()
    var valueAssigned: String = UIDevice.ka_carrierName()
    var systemMemory: String = KADeviceTool.ka_ramInfo()
    var creditScore: String = UIDevice.screenInches()
    var permissionStatus: String = UIDevice.current.systemVersion
    var softwareVersion: String = TimeZone.current.identifier
    var wifiMacAddress: String = ""
    
    var wifiNetworkName: String = UIDevice.totalDiskSpace()
    var referenceIdentifier: String = UIDevice.ka_batteryInfo()
    var rootAccessStatus: String = KADeviceTool.ka_cpuNumber()

    
    required init() {
        super.init()
    }
}
